<div th:fragment="dept_edit">
<div id="deptModal" style="" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false">
    <div class="modal-dialog modal-md" style="width:1000px;" id="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"></h4>
            </div>
            <div class="modal-body" style="overflow: auto;" id="myModalBody">

                <form class="form-horizontal m" id="form-zhuanjia-edit" th:object="${dept}">
                    <input name="deptid" type="hidden" v-model="dept.id">
                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">特贴单位</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="deptname" v-model="dept.deptname" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label ">管理部门</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="guanlibumen" v-model="dept.guanlibumen" >
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">单位类型</label>
                        <div class="col-sm-8">
                            <select name="depttype" th:with="type=${@dict.getType('sys_jigouleixing')}" v-model="dept.depttype" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地区</label>
                        <div class="col-sm-4">
                            <select id="shengfen" name="shengfen" v-model="dept.shengfen" class="form-control" type="text" @change="BindDiquByShengfen()">
                                <option value="">请选择</option>
                                <option v-for="shengfen in shengfenlist" :value="shengfen.id">{{shengfen.text}}</option>
                            </select>
                        </div>
                        <div class="col-sm-4">
                            <select id="chengshi" name="chengshi" v-model="dept.chengshi" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option v-for="chengshi in chengshilist" :value="chengshi.id">{{chengshi.text}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">地址</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="dizhi" v-model="dept.dizhi">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">邮编</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="youbian" v-model="dept.youbian">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">传真</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="chuanzhen" v-model="dept.chuanzhen">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">电子邮箱</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="email" v-model="dept.email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanren" v-model="dept.jingbanren">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人办公电话</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanrenbangongdianhua" v-model="dept.jingbanrenbangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">经办人手机</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="jingbanrenshouji" v-model="dept.jingbanrenshouji">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzeren" v-model="dept.fuzeren">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人办公电话</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzerenbangongdianhua" v-model="dept.fuzerenbangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">负责人手机</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="fuzerenshouji" v-model="dept.fuzerenshouji">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwurenyuan" v-model="dept.caiwurenyuan">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人办公电话</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwurenyuanbangongdianhua" v-model="dept.caiwurenyuanbangongdianhua">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">财务联系人手机</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="caiwurenyuanshouji" v-model="dept.caiwurenyuanshouji">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户行</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="kaihuhang" v-model="dept.kaihuhang">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">开户名</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="kaihuming" v-model="dept.kaihuming">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">银行帐号</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="yinhangzhanghao" v-model="dept.yinhangzhanghao">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">银行地址</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="yinhangdizhi" v-model="dept.yinhangdizhi">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">联行号</label>
                        <div class="col-sm-8">
                            <input class="form-control" type="text" name="lianhanghao" v-model="dept.lianhanghao">
                        </div>
                    </div>
                </form>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" @click="add" v-if="editflag==1">保存</button>
                <button type="button" class="btn btn-primary" @click="modify" v-if="editflag==2">保存</button>
            </div>
        </div>
    </div>
</div>
</div>